Email Notification using SNS and S3 event notification when Object is Uploaded in a S3 bucket
S3
Simple and popular AWS Service for storage. Replicates data by default across multiple facilities. It charges per usage. It is deeply integrated with AWS Services. Buckets are logical storage units. Objects are data added to the bucket. S3 has a storage class on object level which can save money by moving less frequently accessed objects to a colder storage class.
SNS
A fully managed messaging service for both application to application and application to person. A2A pub/sub functionality provides topics for high-throughput, push-based, many-to-many messaging between distributed systems, microservices, and event-driven serverless applications. The A2P functionality enables you to send messages to users at scale via SMS, mobile push, and email.
Demo
Creating an S3 bucket Now creating a topic in the SNS Updating Access Policy, before that copy the ARN and click edit button not delete button Now creating a subscription confirming subscription mail received from the above mail address Going back to S3 and then going to properties and creating event notification Uploading object into S3 Checking mail to see if notification mail indicates as soon as the image uploaded